	<div class="location">当前位置：<a href="#">首页</a> &gt; <span>会员中心</span></div>
<div class="content">
    	<div class="conRight floatl Box">
        	<?php echo $this->element('index/ucMenu')?>
        </div>
    	<div class="conLeft floatr Box Indtion">
        	<h3 class="vipTitle">订单管理</h3>
            <div class="searchDd" style = 'display:none'>
            	<select name="">
                  <option>全部订单</option>
                </select>
                <select name="" style="width:140px;">
                  <option>近三个月订单</option>
                </select>
                <input name="" type="text" class="shuru" value="商品名称、商品编号、订单编号">
                <input name="" type="button" value="查询" class="qrdz">
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="vipdd">
              <thead>
                  <tr>
                    <td width="14%" height="36" bgcolor="#7e7e7e" style="text-indent:10px;">订单编号</td>
                    <td style = 'display:none' width="30%" height="36" bgcolor="#7e7e7e">商品名称</td>
                    <td width="16%" height="36" align="center" bgcolor="#7e7e7e">收货人</td>
                    <td width="11%" height="36" align="center" bgcolor="#7e7e7e">订单金额</td>
                    <td width="10%" height="36" align="center" bgcolor="#7e7e7e">下单时间</td>
                    <td width="10%" height="36" align="center" bgcolor="#7e7e7e">订单状态</td>
                    <td width="9%" height="36" align="center" bgcolor="#7e7e7e">操作</td>
                </tr>
              </thead>
              <tbody>
              	  <?php foreach ($userOrders as $userorder):?>
                  <tr>
                    <td height="80" style="text-indent:10px;">
                    	<?php echo $this->Html->link($userorder['UserOrder']['id'],citylink('UserOrders','view')+array($userorder['UserOrder']['id']))?>
                    </td>
                    <td height="80" style = 'display:none' >
                    	<a href="#"></a>
                    </td>
                    <td height="80" align="center">
                    	<?php echo $userorder['UserOrder']['address_receive']?>
                    </td>
                    <td height="80" align="center">
                    	<span>¥<?php echo $userorder['UserOrder']['price_total']?></span>
                    </td>
                    <td height="80" align="center">
                    	<?php echo date('Y-m-d <br/>H:i:s',strtotime($userorder['UserOrder']['created']))?>
                    </td>
                    <td height="80" align="center">
                    	<em><?php echo $userorder['UserOrderState']['title']?></em>
                    </td>
                    <td height="80" align="center">
                    	<?php 
                    		if($userorder['UserOrderState']['id']==1){
                    			echo $this->Html->link('去付款',citylink('UserOrders','view')+array($userorder['UserOrder']['id']));
                    		}else{
                    			echo $this->Html->link('详情',citylink('UserOrders','view')+array($userorder['UserOrder']['id']));
                    		}
                    	?>
                    </td>
                  </tr>
                  <?php endforeach;?>
              </tbody>
              <tfoot>
                  <tr>
                    <td colspan="7" valign="top"></td>
                  </tr>
              </tfoot>
          </table>
		</div>
    </div>